package org.framework.edge.builder.domain.model.docker.repository.backup;

import org.wu.framework.web.response.Result;
import org.wu.framework.web.response.ResultFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.framework.edge.builder.domain.model.docker.repository.backup.DockerRepositoryBackup;
import java.util.List;
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
/**
 * describe Docker仓库备份 
 *
 * @author Jia wei Wu
 * @date 2025/07/10 08:18 晚上
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyDomainRepository 
 **/

public interface DockerRepositoryBackupRepository {


    /**
     * describe 新增Docker仓库备份
     *
     * @param dockerRepositoryBackup 新增Docker仓库备份     
     * @return {@link  Result<DockerRepositoryBackup>} Docker仓库备份新增后领域对象     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<DockerRepositoryBackup> story(DockerRepositoryBackup dockerRepositoryBackup);

    /**
     * describe 批量新增Docker仓库备份
     *
     * @param dockerRepositoryBackupList 批量新增Docker仓库备份     
     * @return {@link Result<List<DockerRepositoryBackup>>} Docker仓库备份新增后领域对象集合     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<List<DockerRepositoryBackup>> batchStory(List<DockerRepositoryBackup> dockerRepositoryBackupList);

    /**
     * describe 查询单个Docker仓库备份
     *
     * @param dockerRepositoryBackup 查询单个Docker仓库备份     
     * @return {@link Result<DockerRepositoryBackup>} Docker仓库备份DTO对象     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<DockerRepositoryBackup> findOne(DockerRepositoryBackup dockerRepositoryBackup);

    /**
     * describe 查询多个Docker仓库备份
     *
     * @param dockerRepositoryBackup 查询多个Docker仓库备份     
     * @return {@link Result<List<DockerRepositoryBackup>>} Docker仓库备份DTO对象     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<List<DockerRepositoryBackup>> findList(DockerRepositoryBackup dockerRepositoryBackup);

    /**
     * describe 分页查询多个Docker仓库备份
     *
     * @param size 当前页数
     * @param current 当前页
     * @param dockerRepositoryBackup 分页查询多个Docker仓库备份     
     * @return {@link Result<LazyPage<DockerRepositoryBackup>>} 分页Docker仓库备份领域对象     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<LazyPage<DockerRepositoryBackup>> findPage(int size,int current,DockerRepositoryBackup dockerRepositoryBackup);

    /**
     * describe 删除Docker仓库备份
     *
     * @param dockerRepositoryBackup 删除Docker仓库备份     
     * @return {@link Result<DockerRepositoryBackup>} Docker仓库备份     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<DockerRepositoryBackup> remove(DockerRepositoryBackup dockerRepositoryBackup);

    /**
     * describe 是否存在Docker仓库备份
     *
     * @param dockerRepositoryBackup 是否存在Docker仓库备份     
     * @return {@link Result<Boolean>} Docker仓库备份是否存在     
     
     * @author Jia wei Wu
     * @date 2025/07/10 08:18 晚上
     **/

    Result<Boolean> exists(DockerRepositoryBackup dockerRepositoryBackup);

}